// pages/goodlist/goodlist.js
Page({
  data: {
    cid: ''
  },
  onLoad: function(options) {
    if (options.cid) {
      this.setData({
        cid: options.cid
      });
    }
  },
  goToSearchPage: function() {
    wx.navigateTo({
      url: '/pages/search/search'
    });
  }
});
